package com.pandora.credit.dto.response;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.sql.Timestamp;

/**
 * @author developer
 */
public class AnnouncementResponse {

    private long id;
    private String title;
    private String subtitle;
    @JsonProperty("dest_url")
    private String destUrl;
    @JsonProperty("create_time")
    private Timestamp createTime;
    @JsonProperty("update_time")
    private Timestamp updateTime;
    private long mid;
    private int valid;
    private String content;

    public AnnouncementResponse(long id, String title, String subtitle, String destUrl,
                                Timestamp createTime, Timestamp updateTime, long mid, int valid, String content) {
        this.id = id;
        this.title = title;
        this.subtitle = subtitle;
        this.destUrl = destUrl;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.mid = mid;
        this.valid = valid;
        this.content = content;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getDestUrl() {
        return destUrl;
    }

    public void setDestUrl(String destUrl) {
        this.destUrl = destUrl;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public long getMid() {
        return mid;
    }

    public void setMid(long mid) {
        this.mid = mid;
    }

    public int getValid() {
        return valid;
    }

    public void setValid(int valid) {
        this.valid = valid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
